package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"news0/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/create", &controllers.NewsController{}, "post:Create")
	beego.Router("/list", &controllers.NewsController{}, "get:List")
	beego.Router("/up", &controllers.NewsController{}, "post:Up")
	beego.Router("/del", &controllers.NewsController{}, "post:Del")
}
